﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace JuniorProject.Models.Employee
{
    public class EmployeeQuestionModel
    {
        [Display(Name =  "ID")]
        public int ID { get; set; }

        [Display(Name = "Question")]
        public string Question { get; set; }

        [Display(Name = "Insert Date")]
        public System.DateTime InsertDate { get; set; }

        public List<EmployeeAnswerModel> Answers { get; set; }

        public EmployeeQuestionModel(int ID, string Question,
                    System.DateTime InsertDate, List<EmployeeAnswerModel> Answers)
        {
            this.ID = ID;
            this.Question = Question;
            this.InsertDate = InsertDate;
            this.Answers = Answers;
        }
    }

    public class EmployeeAnswerModel
    {
        [Display(Name = "Answer ID")]
        public int ID { get; set; }

        [Display(Name = "Answer")]
        public string Answer { get; set; }

        public EmployeeAnswerModel(int ID, string Answer)
        {
            this.ID = ID;
            this.Answer = Answer;
        }

        public EmployeeAnswerModel()
        {

        }
    }
}